<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateTableOpenShopHandleExpireShopHistory extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('open_shop_handle_expire_shop_history', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger("mainId")->default(0)->comment("open_shop_handle_expire_shop_main.id");
            $table->unsignedTinyInteger("type")->default(0)->comment("类型 1 - 90天记录 2 - 60天记录 3 - 30天记录");

            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('createdByUid')->default(0)->comment('创建人');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->unsignedInteger('updatedByUid')->default(0)->comment('修改人');
            $table->collation = 'utf8mb4_general_ci';
            $table->comment   = '开店 - 临期合同门店处理历史记录';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('open_shop_handle_expire_shop_history');
    }
}
